package com.ktwlsoft.archivemanage.domain.business.repositoryService.study;

import com.ktwlsoft.archivemanage.domain.dao.entity.study.StudyClassContent;
import com.ktwlsoft.archivemanage.domain.dao.repository.study.StudyClassContentMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 课程内容
 *
 * @author Name on 2019/12/24 16:29
 * @version 1.0
 */
@Service
public class StudyClassContentRepositoryService {

    /**课程内容*/
    private final StudyClassContentMapper studyClassContentMapper;

    public StudyClassContentRepositoryService(StudyClassContentMapper studyClassContentMapper) {
        this.studyClassContentMapper = studyClassContentMapper;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table study_class_content
     *
     * @mbg.generated
     */
    public int deleteByPrimaryKey(Long id){
        return studyClassContentMapper.deleteByPrimaryKey(id);
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table study_class_content
     *
     * @mbg.generated
     */
    public int insert(StudyClassContent record){
        return studyClassContentMapper.insert(record);
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table study_class_content
     *
     * @mbg.generated
     */
    public StudyClassContent selectByPrimaryKey(Long id){
        return studyClassContentMapper.selectByPrimaryKey(id);
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table study_class_content
     *
     * @mbg.generated
     */
    public List<StudyClassContent> selectAll(){
        return studyClassContentMapper.selectAll();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table study_class_content
     *
     * @mbg.generated
     */
    public int updateByPrimaryKey(StudyClassContent record){
        return studyClassContentMapper.updateByPrimaryKey(record);
    }
}